﻿using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Media;
using ReflectionStudio.Core.Events;
using System.Windows.Threading;
namespace WPFExcelReport
{
    public partial class TBTWF
    {
        public override void wf_OnMessage(object sender, MessageEventArgs e)
        {
            base.wf_OnMessage(sender, e);
        }
        public TBTWF()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_WFEVENTS();
            this.DataContext = MV;
            InitializeComponent();
        } 
        public override void OnEXAUFChg(string vlaue)
        {
            base.OnEXAUFChg(vlaue);
            IsWFFixed = false;
            dwData = TBMain.NewRow();
            dwData["MANDANT"] = app.Mandant;
            dwData["KRS"] = KRS;
            dwData["LFD"] = LFD;
            dwData["POS"] = POS;
            dwData["WFEVENTS"] = " AND RTRIM(P.WFEVENTS)='" + ART.Trim() + "'";
            dwData["CONTROL"] = " AND RTRIM(P.CONTROL)='OK'";
            SResult = TMV.QWF06(dwData);
            foreach (DataRow row in SResult.Tables[0].Rows)
            {
                IsWFFixed = true;
            }
        }
    }
}
